def f(n):
    # 存储 质数
    factor=[]
    for i in range(2,int(n**0.5)+1):
        # 能整除 当前i是质数，不断除以i
        while n%i==0:
            n=n//i
            factor.append(i)
        if n==1:
            break
    # 如果还有剩余
    if n>1:
        factor.append(n)
    return factor

a,b=map(int,input().split())
for i in range(a,b+1):
    factor=f(i)
    print("{}=".format(i),end="")
    print(*factor,sep="*")
